#ifndef BOOKMARKITEM_H
#define BOOKMARKITEM_H

#include <QString>
#include <QtGui/QIcon>

class BookmarkItem : public QObject
{
	Q_OBJECT
public:
	BookmarkItem(QString url = "", QString title = "", QIcon icon = QIcon(), bool isFolder = 0, QObject *parent = 0);
	inline void change(QString url, QString title, QIcon icon) { m_url = url; m_title = title; m_icon = icon; }
	inline QString url() { return m_url; }
	inline QString title() { return m_title; }
	inline QIcon icon() { return m_icon; }
	inline bool isFolder() { return m_isFolder; }
	inline QVector<BookmarkItem*> *contain(void) { return m_contain; }
	inline void append(BookmarkItem *item) { m_contain->append(item); }
	~BookmarkItem();
private:
	QString m_url;
	QString m_title;
	QIcon m_icon;
	bool m_isFolder;
	QVector<BookmarkItem*> *m_contain;
};

#endif // BOOKMARKITEM_H
